#!/bin/bash
# @IDE: PyCharm
# @Version: Python3.9
# @Author: Kendrick.Kc
# @Email: 509556985@qq.com
# @File: script.sh
# @Inst: 脚本
# @Time: 2023/7/11 23:27
# -----


start() {
  nohup python3 manage.py runsslserver 0.0.0.0:443 --certificate ssl/api.rpcc.kaichao.xin.pem --key ssl/api.rpcc.kaichao.xin.key --noreload >/dev/null 2>&1 &
}

update() {
  git pull
}


Types() {

        if [ "${1}" == start ]; then
          start

        elif [ "${1}" == update ]; then
          update

        else
                echo "Please enter any parameter: sh $0 { start | update }"
        fi
}

Types $1
